package ws;


import ws.ws.HelloWorldService;

import javax.xml.namespace.QName;

public class WsConsumer {

    private static final QName SERVICE_NAME =
            new QName("http://apache.org/hello_world_soap_http",
                    "SOAPService");

    private WsConsumer() { }

    public static void main(String args[]) throws Exception {

        HelloWorldService ss = new HelloWorldService();
        HelloWorld  port = ss.getHelloPort();
        String resp;

        System.out.println("Invoking sayHi...");
        resp = port.sayHi("你好");
        System.out.println("Server responded with: " + resp);
        System.out.println();

        System.out.println("Invoking greetMe...");
        resp = port.sayHiToUser(new User());
        System.out.println("Server responded with: " + resp);
        System.out.println();

        System.exit(0);
    }
}
